Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
12 lines (7 loc) · 413 Bytes

7.2.7 - Http/Request->rawContent.md

File metadata and controls

12 lines (7 loc) · 413 Bytes

Http\Request->rawContent

获取原始的POST包体,用于非application/x-www-form-urlencoded格式的Http POST请求。

string Http\Request->rawContent();
  • 返回原始POST数据,此函数等同于PHP的fopen('php://input')

有些情况下服务器不需要解析Http POST请求参数,1.7.18以上版本增加了http_parse_post 配置,可以关闭POST数据解析。